package com.supermarket_project.mapper;

import com.supermarket_project.pojo.Activity;
import com.supermarket_project.views.ActivityShow;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ActivityMapper {
    List<ActivityShow> getActivityInfo_open();
    List<ActivityShow> getActivityInfo_end();

    int addOneActivity(Activity activity);

    int updateActivityStatus(int now_status,Long activity_id);

    int deleteActivity(Long activity_id);

    /*================================================================================================================*/
    int getNowActivityStatus(long activity_id);

    Long getTypeId(String activity_type_name);
}
